import Vue from 'vue'
import Vuex from 'vuex'
import home from './home.js'
import read from './read.js'
import bookselft from './bookself.js'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    sex: 1, //取值1和2
  },
  getters: {},
  mutations: {
    setSex: (state, {
      sex
    }) => {
      state.sex = sex;
    }
  },
  actions: {},
  modules: {
    home,
    read,
    bookselft
  }
})